package com.mall.alipay.feign;

import com.mall.entity.TbSeckillItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/30 20:11
 */
@FeignClient("seckill-ceshi")
@RequestMapping(value = "/seckillItem")
public interface SeckillItemFeign {

    @GetMapping("/findById")
    TbSeckillItem findById(Long id);

    /**
     * 修改状态
     * @param tbSeckillItem 参数
     * @return 布尔
     */
    @PutMapping("/update")
    Boolean update(@RequestBody TbSeckillItem tbSeckillItem);
}
